﻿/*CREATE TRIGGER [dbo].[Distritos_DeletionTrigger] 
    ON [Distritos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Distritos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[DistritoGuid] = [Distritos_Tombstone].[DistritoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Distritos_Tombstone] 
    ([DistritoGuid], DeletionDate)
    SELECT [DistritoGuid], GETUTCDATE()
    FROM deleted 
END*/